home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Environments / Small Eiffel 0.4.8 / lib_show / bench1 / link_list_bench.e < prev    next >
Encoding:
Text File  |  1997-04-13  |  431 b   |  31 lines  |  [TEXT/ttxt]

  1. -- Part of SmallEiffel -- Read DISCLAIMER file -- Copyright (C) 
  2. -- Dominique COLNET and Suzanne COLLIN -- colnet@loria.fr
  3. --
  4. class LINK_LIST_BENCH
  5.  
  6. inherit BENCH;
  7.  
  8. creation make
  9.  
  10. feature
  11.  
  12.    make is
  13.       local
  14.      link_list: LINK_LIST[INTEGER];
  15.      i: INTEGER;
  16.       do
  17.      from
  18.         !!link_list.make;
  19.         i := count;
  20.      until
  21.         i = 0
  22.      loop
  23.         link_list.add_first(0);
  24.         i := i - 1;
  25.      end;
  26.      bench(link_list);
  27.       end;
  28.  
  29. end
  30.  
  31.